'use strict';

module.exports = (app) => {
  const { STRING, INTEGER, DATE,DataTypes } = app.Sequelize;

  const User = app.model.define('users', {
    id: { type: INTEGER,       primaryKey: true
      },
    username: STRING(30),
    password:STRING(255),
    status: INTEGER,
    age: INTEGER,
    created_at: DATE,
    updated_at: DATE,
  });

  return User;
};
